package com.hl.manage.service.impl;

import com.hl.manage.entity.Menu;
import com.hl.manage.mapper.MenuMapper;
import com.hl.manage.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Helei
 * @since 2021-03-11
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {

	@Resource
	private MenuMapper mmap;
	
	@Override
	public List<Menu> findByParentId(Integer id) {
		// TODO Auto-generated method stub
		return mmap.findByParentId(id);
	}

	@Override
	public List<Menu> pageByParentId(Integer id, Integer page, Integer limit) {
		// TODO Auto-generated method stub
		return mmap.pageByParentId(id, page, limit);
	}

	@Override
	public List<Menu> findByParentIdType(Integer id, Integer type) {
		// TODO Auto-generated method stub
		return mmap.findByParentIdType(id, type);
	}
}
